package com.examination.client.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.examination.client.domian.dto.*;
import com.examination.client.domian.vo.QueryUserListVO;
import com.examination.client.entity.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.examination.client.exception.BusinessException;

import java.util.List;


/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author xiaodong
 * @since 2021-10-20
 */
public interface IUserInfoService extends IService<UserInfo> {

    Boolean save(UserInfoDTO userInfoDTO)throws Exception;


    Boolean modify(UserInfoDTO userInfoDTO)throws Exception;

    Boolean modifyAppSite(UserInfoDTO userInfoDTO)throws Exception;

    UserInfo findByUserId(Integer userId);

    UserInfo findByUsername(String userName,Integer platformType);

    UserInfo findByUsernameToPassword(String userName,String password);

    Page<QueryUserListVO> appList(QueryUserDTO queryUserDTO);

    Page<QueryUserListVO> systemList(QueryUserDTO queryUserDTO);

    Boolean deleteUser(String userId)throws Exception;

    AccountDTO info(String phone) throws BusinessException;

    /**
     * 查询该用户的所有菜单信息
     */
    List<MenuSearchDTO> listMenu(Integer userId, Integer select_status);

    String register(RegistersUser registersUser);
}
